package com.lianwei.dao;

import com.lianwei.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface UserMapper {
    int selectUserByNameAndPassword(@Param("username") String username, @Param("password") String password);
    int register(@Param("newUser") User user);
    int selectUserCountByMail(@Param("mail") String mail);
    void disable(Integer id);
    void enable(Integer id);
    List<User> queryList();
    List<User> queryList(String name);
    User selectUserByMail(@Param("mail")String mail);
}
